package Draw0506;

import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.BufferedImage;

public class SaveListener implements MouseListener {
    private static final String DRAW_FILE = "users.dir";

    private String title;
    private JFrame jFrame;
    private JPanel jPanel;
    public SaveListener(String title, JFrame jFrame,JPanel jPanel){
        this.title = title;
        this.jFrame = jFrame;
        this.jPanel = jPanel;
    }
    @Override
    public void mouseClicked(MouseEvent e) {
        BufferedImage myImage = null;
        try {
                myImage = new Robot().createScreenCapture(new Rectangle());
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }

    }

    @Override
    public void mousePressed(MouseEvent e) {

    }

    @Override
    public void mouseReleased(MouseEvent e) {

    }

    @Override
    public void mouseEntered(MouseEvent e) {

    }

    @Override
    public void mouseExited(MouseEvent e) {

    }
}
